public class CPU {
    // 属性
    int speed;

    //将参数m的值赋给 speed
    public void setSpeed(int m){
        this.speed = m;
    }
    //返回 speed 的值
    public int getSpeed(){
        return speed;
    }
}
